package com.runvp.common.enums;


/**
 * 订单支付状态 (wait:待支付,in:支付中,fail:支付失败,success:支付成功)
 * @author xukk_dp
 */

public enum OrderPayStatus implements BaseEnumInterface {

    PAY_WAIT("wait", "待支付"),
    PAY_IN("in", "支付中"),
    PAY_FAIL("fail", "支付失败"),
    TIMEOUT_CLOSE("timeoutClose", "超时关闭"),
    PAY_CLOSE("close", "强制关闭"),
    PAY_SUCCESS("success", "支付成功");

    private final String code;
    private final String desc;
    private String defaulted;

    @Override
    public String getDefaulted() {
        return defaulted;
    }


    OrderPayStatus(String code, String desc, String defaulted) {
        this.code = code;
        this.desc = desc;
        this.defaulted = defaulted;
    }


    OrderPayStatus(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }


    @Override
    public String getCode() {
        return code;
    }
    @Override
    public String getDesc() {
        return desc;
    }
}
